<?php if(!defined("PATH_HD"))exit;?>
<title>设计</title> 
<?php if(!defined("PATH_HD"))exit;?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>猪八戒网</title>
<head>
  <script type='text/javascript' src='http://localhost/zyhhdcms/xm/hdphp/org/jquery-1.7.2.min.js'></script>
  <script type='text/javascript'>
		HOST = 'http://localhost';
		ROOT = 'http://localhost/zyhhdcms/xm';
		HDPHP = 'http://localhost/zyhhdcms/xm/hdphp';
		STATIC = 'http://localhost/zyhhdcms/xm/static';
		DATA = 'http://localhost/zyhhdcms/xm/data';
		WEB = 'http://localhost/zyhhdcms/xm/index.php';
		APP = 'http://localhost/zyhhdcms/xm/index.php/index';
		CONTROL = 'http://localhost/zyhhdcms/xm/index.php/index/category';
		METH = 'http://localhost/zyhhdcms/xm/index.php/index/category/cate_show';
		URL = 'http://localhost/zyhhdcms/xm/index.php/index/category/cate_show/cateid/2';
		ORG = 'http://localhost/zyhhdcms/xm/hdphp/org';
		TPL = 'http://localhost/zyhhdcms/xm/index/index/tpl';
		PUBLIC = 'http://localhost/zyhhdcms/xm/index/index/tpl/public';
</script> 
<link type="text/css" rel="stylesheet" href="http://localhost/zyhhdcms/xm/index/index/tpl/public/css/head.css"/>
<script type="text/javascript" src="<?php echo "http://localhost/zyhhdcms/xm/index/index/tpl/public/js/index.js";?>"></script>
</head>
<body>
	<a href="javascript:void(0)" id="go_top"></a>
	<div id="top">
		<div class="big">
			<div id="top_menu"><!--导航栏开始-->
				
				<a href="http://localhost/zyhhdcms/xm/index.php/index">猪八戒网</a>
				<span>|</span>
				<a href="http://localhost/zyhhdcms/xm/index.php/index/category">English</a>
				<div class="top_right">

					<ul >
						<li><h5><a href="#">推广</a></h5></li><span>|</span>
						<li><h5><a href="#">服务热线：400-188-6666</a></h5></li><span>|</span>
						<li><h5><a href="#"> 帮助中心</a></h5></li><span>|</span>
						<li><h5><a href="#">社区</a></h5></li><span>|</span>
						<li><h5><a href="#">网站导航</a></h5>
						<div class="under">
							<a href="#">我的猪八戒</a>
							<a href="#">已购买的服务</a>
							<a href="#">我的主页</a>
							<a href="#">我的猪八戒</a>
						</div></li>	<span>|</span>
						<li><h5><a href="#">服务商中心</a></h5><div class="under">
							<a href="#">服务商中心</a>
							<a href="#">已经卖出去的服务</a>
							<a href="#">出售中的服务</a>
							<a href="#">服务商中心</a>
						</div>
						</li><span>|</span>
						<li><h5><a href="#">我的猪八戒</a></h5>
						<div class="under">
							<a href="#">我的猪八戒</a>
							<a href="#">已购买的服务</a>
							<a href="#">我的主页</a>
							<a href="#">我的猪八戒</a>
						</div>
						</li><span>|</span>
						<li><h5><a href="#" class="xial">我的关注</a></h5></li><span>|</span>
						<li class="on"><h5><a href="#" class="on" >发布需求</a></h5></li><span>|</span>
 
					</ul>
				</div>
			</div>
			
		<img src="http://localhost/zyhhdcms/xm/static/images/head_top.jpg" style="float:left;margin-left:10.5px;"  />
		</div>
		</div><!--导航栏结束-->
	<div id="lo_fo"><!--logo和表单部分-->
		<div class="big">
		<div class="form">
			<a href="http://localhost/zyhhdcms/xm/index.php/index">
				<img src="http://localhost/zyhhdcms/xm/static/images/logo_z.png"  class="logo"/></a><!--LOGO图片-->
			<a href="http://localhost/zyhhdcms/xm/index.php/index/category" class="what">&nbsp;</a>
			<form  action="http://localhost/zyhhdcms/xm/index.php/index/category/search">
				<input type="text" class="search" value="你搜索的关键字"/>
				<input type="submit" value="" class="button" />	
			</form><!-- 搜索表单 -->
			
		<div class="login"><!-- 登陆和注册表单 -->

			<?php if(empty($_SESSION['username'])){?>
				<a href="http://localhost/zyhhdcms/xm/index.php/index/category/add_user">免费注册</a><span>|</span>
				<a href="http://localhost/zyhhdcms/xm/index.php/index/category/login">登陆</a>
				<a href="#" class="other" ></a>
				<span class="more"></span>
				<!-- 其他登陆方式 -->
			<?php  }else{ ?> 
				<div class="mesg">
				<img src="http://localhost/zyhhdcms/xm/static/images/head/tou1.gif"  />
				<span class="username">
					<a href="http://localhost/zyhhdcms/xm/index.php/index/mement"><?php echo $_SESSION['username']?></a>
					<b class="b1"></b>
					<b class="b2"></b>
				</span>
			<a href="http://localhost/zyhhdcms/xm/index.php/index/mement/note" class="email"><b><?php echo $_SESSION['noteNum']?></b></a>
			</div>
				<?php }?></div>
				<div class="other_on">
				<ul>
				<a href="#"><li class="qq"></li></a>
				<a href="#"><li class="sina"></li></a>
 				</ul>
			</div>		

			
		</div>
	</div>
</div>
	<div id="menu"><!--网站导航栏-->
		<div class="big">
			<ul>
				<a href="CONTROL"><li>首页</li></a>
				<a href="#"><li>所有需求</li></a>
				<?php if(!empty($row)){$listCount = count($row);$list_id6=0;?><?php foreach($row as $key=>$list){?><?php $list_id6+=1;?>
				<?php if($list['pid']==0){?>	
				<a href="http://localhost/zyhhdcms/xm/index.php/index/category/cate_show/cateid/<?php echo $list['cateid'];?>">
					<li><?php echo $list['cname'];?></li></a><?php }?>
			<?php }?><?php }?>
			</ul>
			<ul id="new">
				<a href="#"><li>赚美金</li></a>
				<a href="#"><li>网站建设</li></a>
				<a href="#"><li>视频</li></a>
				<a href="#"><li>大赛</li></a>
				<a href="#"><li>图书</li></a>
				<a href="#"><li>微博</li></a>
			</ul>	
	</div>
</div> 
<link type="text/css" rel="stylesheet" href="http://localhost/zyhhdcms/xm/index/index/tpl/public/css/show.css"/>
<script type='text/javascript' src='http://localhost/zyhhdcms/xm/hdphp/org/jquery-1.7.2.min.js'></script>  
<script type="text/javascript" src="<?php echo "http://localhost/zyhhdcms/xm/index/index/tpl/public/js/show.js";?>"></script>
</div> 
</div> 

<!--栏目显示-->
	<div id="body">
		<div class="big">
			<div class="lanmu">
			<?php if(isset($cate['parent'])){?>
			<div class="lan_l">
				<ul class="lan">	
					  <span>  
					  	<a href="http://localhost/zyhhdcms/xm/index.php/index/category/cate_show/cateid/<?php echo $cate['parent']['cateid'];?>"><?php echo $cate['parent']['cname'];?></a>
					<p>  	</span><br/>
					<?php if(!empty($cate[0])){$listCount = count($cate[0]);$list_id1=0;?><?php foreach($cate[0] as $key=>$v){?><?php $list_id1+=1;?>
					   <a href="http://localhost/zyhhdcms/xm/index.php/index/category/cate_show/cateid/<?php echo $v['cateid'];?>"<?php if($v['cateid']==$_GET['cateid']){echo "class='on'";} ?> ><?php echo $v['cname'];?></a>
					
					<?php }?><?php }?>
				</p>
			</ul>
					
			</div>

				<?php  }else{ ?>	
				<div class="lan_l"><!--栏目左侧-->
					<ul>
						<?php if(!empty($cate[0])){$listCount = count($cate[0]);$list_id2=0;?><?php foreach($cate[0] as $key=>$v){?><?php $list_id2+=1;?>
					<li>
						<h1><a href="http://localhost/zyhhdcms/xm/index.php/index/category/cate_show/cateid/<?php echo $v['cateid'];?>"><?php echo $v['cname'];?></a></h1>
									
						<p>
							<?php if(!empty($v['child'])){$listCount = count($v['child']);$list_id4=0;?><?php foreach($v['child'] as $key=>$name){?><?php $list_id4+=1;?>
								<a href="http://localhost/zyhhdcms/xm/index.php/index/category/cate_show/cateid/<?php echo $name['cateid'];?>"> <?php echo $name['cname'];?></a>
							<?php }?><?php }?>
						</p>
					</li>
				<?php }?><?php }?>
					</ul>
				</div>
				<!--栏目右侧-->
				<div class="lan_l" style="margin-left:10px"><!--栏目左侧-->
					<ul>
						<?php if(!empty($cate[1])){$listCount = count($cate[1]);$list_id3=0;?><?php foreach($cate[1] as $key=>$v){?><?php $list_id3+=1;?>
					<li>
						<h1><a href="http://localhost/zyhhdcms/xm/index.php/index/category/cate_show/cateid/<?php echo $v['cateid'];?>"><?php echo $v['cname'];?></a></h1>
									
						<p>
							<?php if(!empty($v['child'])){$listCount = count($v['child']);$list_id5=0;?><?php foreach($v['child'] as $key=>$name){?><?php $list_id5+=1;?>
								<a href="http://localhost/zyhhdcms/xm/index.php/index/category/cate_show/cateid/<?php echo $name['cateid'];?>"><?php echo $name['cname'];?></a>
							<?php }?><?php }?>
						</p>
					</li>
				<?php }?><?php }?>						
					</ul> 
				</div>
			<?php }?>
				<div class="xuqiu">
					<p class="tub"></p><!--小图标-->
						<div class="fbxq"><!--需求发布-->
							<p class="p1">需要设计服务？</p>
						<a href="http://localhost/zyhhdcms/xm/index.php/index/xuqiu/add/cateid/<?php echo $_GET['cateid']?>">	<p class="fabu"></p></a> 
							<p class="p2">
								<span>擅长设计?</span>
								<a href="#">立即开店马上赚钱</a>
							</p>
						</div>
						<p class="chi"></p><!--齿轮下边框-->
					</div>
					<div class="img">


					</div>
			</div>
		<div id="lianjie">
			<ul>
				<li class="l1">发布需求</li>
				<li class="l2">找服务商</li>
			</ul>
			<div class="xiangxi">
				<p class="jiantou"></p>
				<!--小箭头-->
				<div class="text"><!--文字-->
				立即将您的需求发布到中国最大的服务交易平台，获得满意作品后再付款！<span class="jia"></span>	
				</div>
			</div><!--对话框-->
			<div class="fuwus"><!--服务商-->
				<p class="jiantou"></p>
				<!--小箭头-->
				<div class="text"><!--文字-->
				六百万服务商真诚为您解决需求，一对一服务，直到您满意后再付款！
				<span class="jia"></span>	
				</div>

				</div>
			</div>
	<div id="add"><!--添加需求块-->	
		<p class="jiantou"></p><!--图标-->
		<div id="cate">	<!--栏目列表-->
		<ul class="pcate"><!--父级栏目-->
				   <li><a href="javascript:void(0)" cid=1>LOGo/VI设计</a></li>
				   <li><a href="javascript:void(0)" cid=1>网页设计</a></li>
				   <li><a href="javascript:void(0)" cid=1>宣传品设计</a></li>
				   <li><a href="javascript:void(0)" cid=1>包装设计</a></li>
				   <li><a href="javascript:void(0)" cid=1>动漫设计</a></li>
				</ul>
				<p></p> 
			<ul class="ccate"> <!--子栏目-->
				<li></li> 
				</ul>
			</div>
		<b>一句话描述你的需求</b>
		<div class="title">	 
			<span></span>
			<input type="text" value="一句话描述你的需求" name="title" />

		</div>
		<p class="error1">应为2~30个字</p>
		<b>将需求说的详细些</b>
		<div class="ed">
		<script type="text/javascript">HD_UEDITOR_ROOT="http://localhost/zyhhdcms/xm/hdphp/org/ueditor/";</script><script type="text/javascript" src="http://localhost/zyhhdcms/xm/hdphp/org/ueditor/editor_config.js"></script>
		<script type="text/javascript" src="http://localhost/zyhhdcms/xm/hdphp/org/ueditor/editor_all.js"></script>
		<link rel="stylesheet" href="http://localhost/zyhhdcms/xm/hdphp/org/ueditor/themes/default/ueditor.css"><script type="text/plain" name="con" id="hd_ueditor22" style=' width:500px'></script><script type="text/javascript" >var editorOption = {
                        autoFloatEnabled:false,
                         toolbars:[['FullScreen', 'Source', 'Undo', 'Redo','Bold']],
                         imageUrl:"http://localhost/zyhhdcms/xm/index.php/index/category/editorupload",
                         imagePath:"",
                         fileUrl:"http://localhost/zyhhdcms/xm/index.php/index/category/editorupload",
                         filePath:"",
                         maximumWords:100,
                         minFrameHeight:200
                    };var editor = new baidu.editor.ui.Editor(editorOption);
                    editor.render("hd_ueditor22")</script><!--百度编辑器--></div> 
		<div><!--上传栏-->
			<span class="sp1"></span><!--链接图标-->
			<a href="#">添加附件</a><!--之后放插件-->
			<span class="sp2"></span><!--向下图标-->
			<span>最多可添加五个附件，每个大小不超过10MB。</span>
			<a href="#">无法正常上传?</a>
		</div>
		<p><b>联系方式</b><span>真实的联系方式有助于客服及时与您沟通</span></p>
		<div id="shouji"><!--手机号-->
			<span class="phone"></span>
			<input type="text" value="输入手机号码" name="phone" />
		</div>
		<!-- <p class="error2">应为2~30个字</p> -->
	<div id="xieyi">
			<input type="checkbox" class="chek" /><span>我已阅读并接受</span>《
			<a href="#">猪八戒网任务发布协议(试行)</a>》	
			</div><!--协议-->
		 	<input type="submit" class="sub" value="" />
		 </div>
		<div class="c"></div>	
	<div id="fuwu_menu"><!--服务导航-->
		<li><b></b>
			<a href="javascript:void(0)">
			<span class="sp1">平面设计需求</span></a></li>
		<li><b></b>
			<a href="javascript:void(0)">
			<span class="sp2">平面设计服务商</span>
			</a></li>
		<li><b></b>
			<a href="javascript:void(0)">
			<span class="sp3">设计服务</span>
			</a>
		</li>
	
	</div>
<div class="bode"></div><!--颜色边框-->
	 
<div id="orde"><!--排序-->

	<a href="http://localhost/zyhhdcms/xm/index.php/index/category/cate_show/cateid/<?php echo $xuqiu['cid'];?>/by/time"  />剩余时间</a>
	<a href="http://localhost/zyhhdcms/xm/index.php/index/category/cate_show/cateid/<?php echo $xuqiu['cid'];?>/by/count"  />投标数</a>
	<a href="http://localhost/zyhhdcms/xm/index.php/index/category/cate_show/cateid/<?php echo $xuqiu['cid'];?>/by/price"  />价格</a>

	<div class="qujian"><!--价格区间-->
		￥<input type="text" name="min" class="jiage" />&nbsp;至
		<input type="text"  name="max"	class="jiage"/>
		<input type="button" class="ok"/>
	</div> 
		<div class="search"><!--关键字搜索-->
			<input type="text" name="sea" value="输入关键字" class="key"/>
			<input type="button" class="but" title="搜索" >
			</div>
			<div class="more">更多筛选</div>
</div>

<div id="foot">
	<table class="t1" border="0" cellpadding="0" cellspacing="0">
		<style type="text/css">
		td{
			background: red;
			border: solid 2px red;
			}</style>

		<img src="http://localhost/zyhhdcms/xm/index/index/tpl/public/images/201209181517.jpg" />
	
		<?php if(empty($xuqiu[0])){?>
		<tr><td style="b">
			<img src="http://localhost/zyhhdcms/xm/index/index/tpl/public/images/error.jpg" style="margin-left:200px; margin-top:-15px;" />
			</td>
		</tr>
			<?php  }else{ ?>
		<tr class="tr1">
			<th class="t1">金额</th>
			<th class="t2">标题</th>
			<th class="t3">投标</th>
			<th class="t4">参与方式</th>
			<th class="t5">到期时间</th>
			<th class="t6"></th>
		
		
	</tr>
		<?php foreach ($xuqiu as $v) {?>
		   <?php if(is_array($v)){?>
			<tr class="tr2" style="background:red">
			<td><span><?php echo $v['price'];?>元</span></td>
				<td><a href="http://localhost/zyhhdcms/xm/index.php/index/xuqiu/xuqiu_show/xid/<?php echo $v['xid']?>"><?php echo $v['title'];?></a></td>
				<td>35</td>
				<td><?php echo $v['style'];?></td>
				<td><?php echo $v['time'];?></td>
				<td class="i">
					<a href="http://localhost/zyhhdcms/xm/index.php/index/xuqiu/add/cateid/<?php echo $v['cateid'];?>" /></a>
				</td>
			
			</tr>
		<?php }?>
			<?php }?>
		<?php }?>
	</table>
</div>
</div>